package com.jprocms.module.cms.convert.investigateoptionop;

import com.jpro.framework.common.pojo.PageResult;
import com.jprocms.module.cms.controller.admin.investigateoptionop.vo.InvestigateOptionOpCreateReqVO;
import com.jprocms.module.cms.controller.admin.investigateoptionop.vo.InvestigateOptionOpRespVO;
import com.jprocms.module.cms.controller.admin.investigateoptionop.vo.InvestigateOptionOpUpdateReqVO;
import com.jprocms.module.cms.dal.dataobject.investigateoptionop.InvestigateOptionOpDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 问卷调查选项与调查意见关联 Convert
 *
 * @author jprocms
 */
@Mapper
public interface InvestigateOptionOpConvert {

    InvestigateOptionOpConvert INSTANCE = Mappers.getMapper(InvestigateOptionOpConvert.class);

    InvestigateOptionOpDO convert(InvestigateOptionOpCreateReqVO bean);

    InvestigateOptionOpDO convert(InvestigateOptionOpUpdateReqVO bean);

    InvestigateOptionOpRespVO convert(InvestigateOptionOpDO bean);

    List<InvestigateOptionOpRespVO> convertList(List<InvestigateOptionOpDO> list);

    PageResult<InvestigateOptionOpRespVO> convertPage(PageResult<InvestigateOptionOpDO> page);

}
